<template>
	<view class="container">
		<view class="title">
			《数字医生助手用户协议》
		</view>
		<u-parse :html="content" :tag-style="style"></u-parse>
	</view>
</template>

<script>
	import {
		protocolGet
	} from '@/api/index.js'
	export default {
		data() {
			return {
				content: '',
				style: {
					'p': 'line-height:1.5',
					'strong':'margin-top:20px;display:inline-block'
				}
			}
		},
		computed: {

		},
		onReady() {

		},
		created() {
			this.init()
		},
		methods: {
			async init() {
				let res = await protocolGet()
				this.content = res.data.noticeContent
				console.log('隐私', this.content);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		.title {
			font-family: PingFang SC, PingFang SC;
			font-weight: 800;
			font-size: 44rpx;
			color: #212121;
			//line-height: 52rpx;
			text-align: center;
			//margin-bottom: 40rpx;
			margin-top: 40rpx;
		}

		padding:0 24rpx;
		font-family: PingFang SC,
		PingFang SC;
		//font-weight: bold;
		font-size: 32rpx;
		color: #212121;
		line-height: 48rpx;
	}
</style>